<?php


namespace app\model;

use think\Model;

class AdminPermissions extends Model {
    protected $name = 'admin_roles';

    public function permissions()
    {
        return $this->belongsToMany(AdminPermissions::class, 'admin_role_permissions', 'permission_id', 'role_id');
    }
}

